package com.restaurant.springboot.entity.dto;

import java.util.Objects;

public class CouponDTO {

    private int userId;
    private int couponSeriesId;

    public CouponDTO() {
    }

    public CouponDTO(int userId, int couponSeriesId) {
        this.userId = userId;
        this.couponSeriesId = couponSeriesId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCouponSeriesId() {
        return couponSeriesId;
    }

    public void setCouponSeriesId(int couponSeriesId) {
        this.couponSeriesId = couponSeriesId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CouponDTO couponDTO = (CouponDTO) o;
        return userId == couponDTO.userId &&
                couponSeriesId == couponDTO.couponSeriesId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, couponSeriesId);
    }
}
